<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="java.util.*,net.akkz.model.Fulture,net.akkz.model.MyString"%>
<%	
	Fulture fulture = (Fulture)request.getAttribute("fulture"); 
	if(fulture != null)
	{
%>
{
	"fulture":
	{
		"id":<%= fulture.getId() %>,
		"date":"<%= fulture.getDate() %>",
		"message":"<%= fulture.getMessage() %>",
		"studentid":<%= fulture.getStudentid() %>,
		"joinnum":<%= fulture.getJoined() %>,
		"state":<%= request.getAttribute("state") %>
	},
	"joinedStudent":
	[{"sid":0}
<%
	}
	
	ArrayList<MyString> fultureJoineds = (ArrayList<MyString>)request.getAttribute("joinedStudent");
	if(fultureJoineds != null)
	{
		for(MyString myString : fultureJoineds)
		{
%>
		,{"sid":"<%= myString.getName()  %>"}
<%
		}
	}
%>
	]
}